﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 云对象存储回调模型接口
    /// </summary>
    public interface ICloudCallbackModel
    {

    }

    /// <summary>
    /// 阿里OSS回调模型
    /// </summary>
    public class AliyunOSSCallbackModel : ICloudCallbackModel
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        public string filename { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public int size { get; set; }
        /// <summary>
        /// 文件Mime类型
        /// </summary>
        public string mimeType { get; set; }
        /// <summary>
        /// 文件长(当为图片时)
        /// </summary>
        public int? width { get; set; }
        /// <summary>
        /// 文件高(当为图片时)
        /// </summary>
        public int? height { get; set; }
    }

    /// <summary>
    /// 腾讯COS回调模型
    /// </summary>
    public class TencentCOSCallbackModel : ICloudCallbackModel
    {
        /// <summary>
        /// Bucket 名称
        /// </summary>
        public string Bucket { get; set; }
        /// <summary>
        /// 对象Key
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Etag { get; set; }
    }
}
